package cn.markjoy.springbootrabbit.config.mybatis;

import org.springframework.beans.factory.annotation.Value;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.context.annotation.Configuration;
import org.springframework.context.annotation.PropertySource;

/**
 * Created by zhaojiandong on 2018/5/24
 */

@Configuration
@PropertySource("classpath:mybatis.properties")
//指定属性文件，构成`org.springframework.core.env.PropertySource`，加到 `org.springframework.core.env.Environment`中。
public class MybatisProperties
{

    @Value("$mybatis.typeAliasesPackage")
    private String typeAliasPackage;

    @Value("$mybatis.mapperLocations")
    private String mapperLocations;

    public String getTypeAliasPackage()
    {
        return typeAliasPackage;
    }

    public void setTypeAliasPackage(String typeAliasPackage)
    {
        this.typeAliasPackage = typeAliasPackage;
    }

    public String getMapperLocations()
    {
        return mapperLocations;
    }

    public void setMapperLocations(String mapperLocations)
    {
        this.mapperLocations = mapperLocations;
    }
}
